package com.ywu.bpmn.spi.spi;

import com.ywu.bpmn.spi.dto.YwuBpmnDto;
import com.ywu.common.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName YwuActivitiSpi
 * @Description TODO
 * @Author GroundDemo
 * @Date 2025/4/23 2:02
 * @Version 1.0
 **/
@FeignClient(value = "YWU-BPMN")
public interface YwuActivitiSpi {
    @PostMapping("/ywu/bpmn/activiti/deployment")
    CommonResult<Object> deployFlow(@RequestBody YwuBpmnDto dto);

    @PostMapping("/ywu/bpmn/activiti/start")
    CommonResult<Object> start(@RequestBody YwuBpmnDto dto);

    @PostMapping("/ywu/bpmn/activiti/toDoList")
    CommonResult<Object> toDoList(@RequestBody YwuBpmnDto dto);

    @PostMapping("/ywu/bpmn/activiti/complete")
    CommonResult<Object> complete(@RequestBody YwuBpmnDto dto);

    @PostMapping("/ywu/bpmn/activiti/queryAllVariables")
    CommonResult<Object> queryAllVariables(@RequestBody YwuBpmnDto dto);
}
